Skip to content

feat(material/*) Focus indicator unit tests #18150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 13, 2020
Merged

feat(material/*) Focus indicator unit tests #18150

merged 8 commits into from
Jan 13, 2020

Conversation

zelliott
Copy link
Collaborator

@zelliott zelliott commented Jan 10, 2020

  • Added basic unit tests to every component that ensures that the class .mat-focus-indicator exists on the appropriate element.
  • Removed overflow: hidden from .mat-tree-node in MatTree (as it was cutting off some of the focus indicator).

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jan 10, 2020
@zelliott zelliott changed the title Focus indicator tests & minor rendering improvements. Focus indicator unit tests Jan 10, 2020
@zelliott zelliott changed the title Focus indicator unit tests feat(material/*) Focus indicator unit tests Jan 10, 2020
@zelliott zelliott requested review from jelbourn and mmalerba January 10, 2020 20:51
@zelliott zelliott marked this pull request as ready for review January 10, 2020 21:08
@zelliott zelliott removed the request for review from andrewseguin January 10, 2020 21:08
@@ -9,7 +9,6 @@ $mat-node-height: 48px;
align-items: center;
min-height: $mat-node-height;
flex: 1;
overflow: hidden;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to see if this changes any screenshots in Google by running a global presubmit with just this line changed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed 2 screenshots, but one was an improvement in my opinion and the other was a very nit box-shadow diff of some kind. Nothing major.

@zelliott zelliott requested a review from jelbourn January 13, 2020 22:24
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jan 13, 2020
@jelbourn jelbourn merged commit f724e4d into angular:focus-indicator Jan 13, 2020
mmalerba pushed a commit that referenced this pull request Jan 21, 2020
* Add focus indicators to mat-chip. Use a dynamically added element as the ripple target

* _document should be an optional param to avoid breaking change.

* Added unit tests for focus indicator, improved focus indicator color on particular components.

* Some minor style changes.

* Cleaned up focus indicator unit tests.

* Some more minor unit test formatting changes, undo coloring changes for now.

* Fixed formatting.

* Fixed final linter error.
jelbourn pushed a commit that referenced this pull request Jan 28, 2020
* Add focus indicators to mat-chip. Use a dynamically added element as the ripple target

* _document should be an optional param to avoid breaking change.

* Added unit tests for focus indicator, improved focus indicator color on particular components.

* Some minor style changes.

* Cleaned up focus indicator unit tests.

* Some more minor unit test formatting changes, undo coloring changes for now.

* Fixed formatting.

* Fixed final linter error.
mmalerba pushed a commit that referenced this pull request Feb 4, 2020
* Add focus indicators to mat-chip. Use a dynamically added element as the ripple target

* _document should be an optional param to avoid breaking change.

* Added unit tests for focus indicator, improved focus indicator color on particular components.

* Some minor style changes.

* Cleaned up focus indicator unit tests.

* Some more minor unit test formatting changes, undo coloring changes for now.

* Fixed formatting.

* Fixed final linter error.
mmalerba pushed a commit that referenced this pull request Feb 4, 2020
* Add focus indicators to mat-chip. Use a dynamically added element as the ripple target

* _document should be an optional param to avoid breaking change.

* Added unit tests for focus indicator, improved focus indicator color on particular components.

* Some minor style changes.

* Cleaned up focus indicator unit tests.

* Some more minor unit test formatting changes, undo coloring changes for now.

* Fixed formatting.

* Fixed final linter error.
mmalerba pushed a commit that referenced this pull request Feb 12, 2020
* Add focus indicators to mat-chip. Use a dynamically added element as the ripple target

* _document should be an optional param to avoid breaking change.

* Added unit tests for focus indicator, improved focus indicator color on particular components.

* Some minor style changes.

* Cleaned up focus indicator unit tests.

* Some more minor unit test formatting changes, undo coloring changes for now.

* Fixed formatting.

* Fixed final linter error.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants